package pl.mchaniewski.ryneczek.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDao<T, ID extends Serializable> {

    public List<T> loadAll() throws Exception;

    public T findById(ID id) throws Exception;

    public T save(T entity);

    public void remove(T entity) throws Exception;

}
